package com.ruoyi.oss.service;

import cn.xuyanwu.spring.file.storage.FileInfo;
import cn.xuyanwu.spring.file.storage.recorder.FileRecorder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.oss.entity.FileDetail;

/**
* @author shejiangbo
* @description 针对表【file_detail(文件记录表)】的数据库操作Service
* @createDate 2023-05-09 16:00:28
*/
public interface FileDetailService extends IService<FileDetail>, FileRecorder {


    public FileInfo getByFileId(String fileId) throws JsonProcessingException;

    public FileInfo toInfo(FileDetail detail) throws JsonProcessingException;

    public FileInfo getLogo(String fileId) throws JsonProcessingException;
}
